package minijvm.cmd;

import minijvm.clz.ClassFile;

/**
 * @author ChangLiang
 * @date 2020/4/26
 */
public abstract class OneOperandCmd extends ByteCodeCommand {

    protected OneOperandCmd(ClassFile clzFile, String opCode) {
        super(clzFile, opCode);
    }

    private int operand;

    public int getOperand() {
        return operand;
    }

    public void setOperand(int operand) {
        this.operand = operand;
    }

    @Override
    public int getLength() {
        return 2;
    }
}
